package com.lej.login.guardSpirit

import androidx.lifecycle.MutableLiveData
import com.lej.core.base.BaseModel
import com.lej.core.base.BaseViewModel
import com.lej.dataservice.club.http.requestMap
import com.lej.login.http.loginApiService

/**
 *  author: cjq
 *  date  : 2022/10/6 0006
 *  desc  :
 */
class GuardianSpiritVM : BaseViewModel<BaseModel>() {
    val isWelcome = MutableLiveData(false)   //true 在欢迎界面  false 在对话界面

    fun getSpiritMsg(versionName: String) = requestMap(map = { get("spiritChatMsg").asString }) { loginApiService.configSever(listOf("spiritChatMsg"), versionName) }

}